<html>
<body>
Reports calls to <code>String.equals()</code> with a <code>CharSequence</code> as the argument.
<p>
  <code>String.equals()</code> can only return <code>true</code> for <code>String</code> arguments.
  To compare the contents of a <code>String</code> with a non-<code>String</code> <code>CharSequence</code> argument,
  use the <code>contentEquals()</code> method.</p>
<p><b>Example:</b></p>
<pre><code>
  boolean equals(String s, CharSequence ch) {
    return s.equals(ch);
  }
</code></pre>
<p>After quick-fix is applied:</p>
<pre><code>
  boolean equals(String s, CharSequence ch) {
    return s.contentEquals(ch);
  }
</code></pre>
<!-- tooltip end -->
<p>
<small>New in 2017.3</small>
</body>
</html>